package com.quad.innovators.salesease.model.form.warehouse;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;

import java.time.LocalDateTime;
import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * @author : shanshan.li
 * @createTime : 2025/4/3 10:51
 * @Version : 1.0 
 */
@Schema(description = "车辆带货信息对象")
@Data
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class VehicleBringGoodsForm {

    @Schema(description = "code")
    private String code;

    @Schema(description = "车牌号信息")
    @NotBlank(message = "车牌号信息不能为空")
    private String licenseNumber;

    @Schema(description = "检验状态 1 - 未检验 2 - 结果不一致 3 - 结果完全一致")
    private Integer examineResultType;

    @Schema(description = "多余数量")
    private Integer manyNumber;

    @Schema(description = "少于数量")
    private Integer lackNumber;

    @Schema(description = "出车数量")
    private Integer saleNumber;

    @Schema(description = "回车数量")
    private Integer returnNumber;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "绑定销售单列表")
    private List<String> saleReturnCodeList;

    @Schema(description = "车辆扫描列表")
    private List<VehicleBringScanCodeForm> vehicleBringScanCodeFormList;
}
